Skip to content

fix(#392 | typesync api): move @graphprotocol/typesync Mapping api into @graphprotocol/hypergraph#393

Merged
cmwhited merged 3 commits into
mainfrom
chris.whited/typesync.v2/move-mapping-into-hypergraph
Jul 28, 2025
Merged

fix(#392 | typesync api): move @graphprotocol/typesync Mapping api into @graphprotocol/hypergraph#393
cmwhited merged 3 commits into
mainfrom
chris.whited/typesync.v2/move-mapping-into-hypergraph

Conversation

@cmwhited
Copy link
Copy Markdown
Collaborator

@cmwhited cmwhited commented Jul 28, 2025

Description

After discussion during the sync, we came to the agreement that having the extra @graphprotocol/typesync package for the mapping was additional, over-complicated devex with little gain.

So the decision was made to move the @graphprotocol/typesync functionality into the @graphprotocol/hypergraph package and export it out from there instead.

Resulting change is pretty simple:

  • before
import type { Mapping } from '@graphprotocol/typesync/Mapping'
  • after
import type { Mapping } from '@graphprotocol/hypergraph/mapping'

The type definition/api are exactly the same.

A quickfollow PR will be coming to use this new export in the create-hypergraph templates

Closes #392

@cmwhited cmwhited requested a review from nikgraf July 28, 2025 20:11
Comment thread packages/hypergraph/package.json
Comment thread apps/events/src/mapping.ts Outdated
Comment thread packages/hypergraph-react/CHANGELOG.md
Comment thread apps/events/src/mapping.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Mapping type def and generator api into hypergraph

2 participants